<?php

use yii\helpers\Html;
use yii\widgets\ListView;
use yii\helpers\Url;

$this->title = 'My Yii Application';
?>
<div class="site-index">
    <h1><?php echo $type['tagName']?></h1>
    <div class="container">
        <?php foreach((array)$data as $k => $novel){?>
        <div class="col-md-2">
            <a href="<?=Url::toRoute(['novel/index', 'novelId' => $novel['novelId'], 'tagId' => $id])?>">
                <div class="face">
                    <img src="<?php echo Yii::$app->params['pic'].(!empty($novel['face']) ? basename($novel['face']) : 'nocover.jpg');?>" width="120" />
                </div>
                <div class="novel-title1"><?php echo $novel['novelName']?></div>
            </a>
        </div>
        <?php }?>
    </div>
    <?php echo $pageStr?>
</div>
